<?php


namespace app\model;


use think\Model;

class RoleModel extends Model
{
    protected $name = 'base_role';
    protected $pk = 'role_id';

    public function powers(){
        return $this->belongsToMany("MenuModel","base_role_menu","menu_id","role_id");
    }
}